{include file="public/header" /}
<link rel="stylesheet" href="/static/index/css/page/address.css">
<body>
<div class="build-navbar" data-title="选择地址" data-left="false"></div>
<div class="main" style="height: 100vh">

    <div style="padding-bottom: 3rem">
        {if count($list) > 0}
        {foreach name="list" item="vo"}
        <div class="address-item p-30 m-30" data-id="{$vo.id}">
            <div class="top flex items-center">
                <span class="name">{$vo.nickname}</span>
                <span class="tel">{$vo.tel}</span>
                {if $vo.default == 1}<span class="default">默认</span>{/if}
            </div>
            <div class="line-2 details ">{$vo.p.title}{$vo.c.title}{$vo.d.title}{$vo.details}</div>
        </div>
        {/foreach}
        {else}
        <div class="build-no-more" data-title="暂无地址"></div>
        {/if}
    </div>
    <div class="btn theme-btn add" lay-event="jump" lay-url="{:url('address/add')}?type=choose" style="bottom: .1rem">添加收货地址
    </div>
</div>

</body>
{include file="public/footer"/}
</html>